﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Browser;
using SilverQuery;
using SilverPortal;

namespace SilverPortalDemo
{
	public class HelloWorldModule : SilverPortalModule
	{
		protected override void Load()
		{
			var html = @q(TemplateHtml);
			@q("h3", html).html("Hello " + base.Config.Settings["name"] + "!");
			base.Container.append(html);

			base.DoneLoading();
		}

		private const string TemplateHtml = "<div><h3></h3></div>";
	}
}
